<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> 
<table cellpadding="0" cellspacing="0" border="0" class="datatable">
	<thead>
		<tr>
			<th>名称</th>
			<th>类型</th>
			<th>KEY</th>
			<th>默认值</th>
			<th>能否为空</th>
			<th>Extra</th>
			<th>说明</th>
		</tr>
	</thead>
	<tbody>
	<c:set var="f" value="1" />
	<c:forEach var="field" items="${fields }">
	<c:set var="f" value="${f+1 }" />
	<tr class='grade<c:if test="${f%2==0}">B</c:if><c:if test="${f%2!=0}">A</c:if>'>
		<td>${field.Field }</td>
		<td>${field.Type }</td>
		<td>${field.Key }</td>
		<td>${field.Default }</td>
		<td>${field.Null }</td>
		<td>${field.Extra }</td>
		<td>${field.Comment }</td>
	</tr>
	</c:forEach>
	</tbody>
</table>
<script>
$(".datatable").dataTable(datatable_config);
</script>